//
//  ApplySucessCell.h
//  CommunityNannyO2O
//
//  Created by apple on 15/8/13.
//  Copyright (c) 2015年 Apple. All rights reserved.
//

#import "ApplySucessCell.h"
#import "APIAdress.h"
#import "MBProgressHUD+YC.h"
#import "MJExtension.h"
#import "AccountTool.h"
#import "UIViewController+Create.h"
#import "CustomTextField.h"
#import "AppConfig.h"
#import "QXNetWorkTool.h"

@interface ApplySucessCell()<QXNetWorkToolDelegate>

@property (weak, nonatomic) IBOutlet UILabel *dateLabel;

@end

@implementation ApplySucessCell

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"ApplySucessCell";
    ApplySucessCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil) {
        
        cell = [[[NSBundle mainBundle] loadNibNamed:ID owner:nil options:nil]firstObject];
        
        [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
    }
    
    return cell;
}

-(void)awakeFromNib
{
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    
    [formatter setDateFormat:@"YYYY年MM月dd号HH点mm分"];
    
    NSString *timestamp = [formatter stringFromDate:[NSDate date]];
    
    [self.dateLabel setText:timestamp];
}


@end




















